package com.yc.springcloud.handler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.yc.springcloud.utils.Result;

/**
 * @Author DELL
 * @Date 2024/11/12 14:36
 * @Version 1.0
 */
//全局限流处理类
public class CustomGlobalBlockHandler {

	public static Result handlerMethod(BlockException blockException){
		return Result.success("400", "客户自定义异常处理");
	}

	public static Result fallbackHandlerMethod(BlockException blockException){
		return Result.success("401", "fallback处理");
	}

}
